package org.csu.mypetstore.domain;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component("category")
public class Category {
    private String categoryId;
    private String name;
    private String description;

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId.trim();
    }

    public String toString() {
        return getCategoryId();
    }
}
